<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/12/16
  Time: 13:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>音频管理页面</title>
    <script>
        window.onload = function() {
            // 获取audio元素
            let audio = document.getElementById('myAudio');
            // 获取自定义的播放按钮元素
            let playButton = document.getElementById('playBtn');
            playButton.addEventListener('click', function() {
                if (audio.paused) {
                    audio.play();
                } else {
                    audio.pause();
                }
            });
        };
    </script>
</head>
<body>
<audio controls>
    <source src="music/杨郡安,炸酱面zzang%20-%20二拜天地.ncm" type="music">
</audio>
<button id="playBtn">播放/暂停</button>
</body>
</html>
